cmake_minimum_required(VERSION 3.16)
project(input VERSION 1.0 LANGUAGES C CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Set up AUTOMOC and some sensible defaults for runtime execution
# When using Qt 6.3, you can replace the code block below with
# qt_standard_project_setup()
set(CMAKE_AUTOMOC ON)
include(GNUInstallDirs)

find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)


if(QT_FEATURE_private_tests)
    add_subdirectory(qaxis)
    add_subdirectory(qaction)
    add_subdirectory(qactioninput)
    add_subdirectory(qabstractaxisinput)
    add_subdirectory(qanalogaxisinput)
    add_subdirectory(qbuttonaxisinput)
    add_subdirectory(qkeyboardhandler)
    add_subdirectory(qlogicaldevice)
    add_subdirectory(axis)
    add_subdirectory(action)
    add_subdirectory(abstractaxisinput)
    add_subdirectory(actioninput)
    add_subdirectory(analogaxisinput)
    add_subdirectory(buttonaxisinput)
    add_subdirectory(keyboardhandler)
    add_subdirectory(qaxisaccumulator)
    add_subdirectory(inputsequence)
    add_subdirectory(inputchord)
    add_subdirectory(qabstractphysicaldevicebackendnode)
    add_subdirectory(logicaldevice)
    add_subdirectory(qabstractphysicaldeviceproxy)
    add_subdirectory(physicaldeviceproxy)
    add_subdirectory(loadproxydevicejob)
    add_subdirectory(qmousedevice)
    add_subdirectory(mousedevice)
    add_subdirectory(utils)
    add_subdirectory(axisaccumulator)
    add_subdirectory(axisaccumulatorjob)
endif()
